<include file="__THEME__/header" />
<link href="../Public/css/Mess.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Public/msg.js"></script>
<link href="../Public/css/space.css" rel="stylesheet" type="text/css" />
<div class="contents lbg B"> <include file="../Public/home_left" />
  <div class="contents_min w787">
    <h3 class="tit_h3">{:L('msg_center')}</h3>
    <div class="write_info">
      <div class="tab">
        <!-- 切换标签 begin  -->
        <ul>
          <li> <span><a href="{:U('home/Message/index','type=notify')}">{:L('notify')}</a></span> </li>
          <li  class="on"> <span><a href="{:U('home/Message/index','type=inceptbox')}">{:L('inbox')}</a></span> </li>
          <li> <span><a href="{:U('home/Message/index','type=sendbox')}">{:L('outbox')}</a></span> </li>
          <li> <span><a href="{:U('home/Message/index','type=send')}">{:L('msg_write')}</a></span> </li>
        </ul>
      </div>
      <div class="mt20">
        <div class="MList line" style="padding:0">
          <!-- 好友日志 begin  -->
          <div class="MenuSub" style="margin-bottom:0; _padding-top:7px;">
            <label for="message_selector">{:L('select')}：</label>
            <select name="message_selector2" onchange="select_change(this)">
              <option selected="selected" value="^_^">---</option>
              <option value="unAll">{:L('select_none')}</option>
              <option value="read">{:L('read')}</option>
              <option value="unread">{:L('unread')}</option>
              <option value="all">{:L('all')}</option>
            </select>
            <a href="javascript:bj_unread();" class="cGray2 bj_unread bj_all">{:L('mark_unread')}</a> <a href="javascript:bj_read();" class="cGray2 bj_read bj_all">{:L('mark_read')}</a> <a href="javascript:del_some();" class="cGray2 bj_all">{:L('delete')}</a></div>
          <php>if($list){</php>
          <div class="lh16 td_line">
            <table width="100%" border="0" cellspacing="0" cellpadding="3">
              <form method="post" action="" id="the_box">
                <tbody>
                  <volist id="msg" name="list">
                  <php>
                $bgcss=($msg["is_read"] == 0)?"bg03":"bg";
                </php>
                <tr class="{$bgcss}" height="50" id="msg_{$msg.id}">
                  <td align="center" width="24" class="lineB_D"><input type="checkbox" class="checkbox <php> if($msg["is_read"] == 0) {
                    </php>
                    unread
                    <php>}else{</php>
                    read
                    <php>}</php>
                    " value="{$msg.id}" id="checkbox" name="checkbox"></td>
                  <td align="center" id="bj_pic_{$msg.id}" width="24" class="lineB_D"><php> if($msg["is_read"] == 0) {</php>
                    <img src="__PUBLIC__/images/ico_mail1.gif" alt="未读" width="14" height="10" />
                    <php> }else{ </php>
                    <img src="__PUBLIC__/images/ico_mail3.gif" alt="已读" width="14" height="12" />
                    <php> }</php></td>
                  <td width="70" class="lineB_D"><span class="headpic50"><a href="{:U('space/View/','uid='.$msg['fromUserId'])}"><img src="{$msg.fromUserId|getUserFace}"></a></span></td>
                  <td width="184" class="lineB_D"><a href="{:U('space/View/','uid='.$msg['fromUserId'])}">{$msg.fromUserId|getUserName}</a><br>
                    <em>{$msg.cTime|friendlyDate="full"}</em></td>
                  <td width="473" class=""><!--未读的加粗显示-->
                    <php> if($msg["is_read"] == 0) {</php>
                    <strong><a href="__APP__&mod=message&act=view&t=inbox&lid={$msg['id']}&id=<php> if($msg['replyMsgId'] == 0){ echo $msg['id']; }else{ echo $msg['replyMsgId']; } </php> ">{$msg.subject}</a> <br />
                    {$msg.content|msubstr=0,90}</strong>
                    <php> }else{ </php>
                    <a href="__APP__&mod=message&act=view&t=inbox&lid={$msg['id']}&id=<php> if($msg['replyMsgId'] == 0){ echo $msg['id']; }else{ echo $msg['replyMsgId']; } </php> ">{$msg.subject}</a> <br />
                    {$msg.content|msubstr=0,90}
                    <php> }</php>
                    <a href="#nogo"></a></td>
                  <!--已读的不加粗显示-->
                  <td width="60" class="lineB_D" align="center"><a href="javascript:del_msg({$msg.id})">{:L('delete')}</a></td>
                </tr>
                </volist>
                </tbody>
              </form>
            </table>
          </div>
		   <p class="page alR mb20 mt5"> {$page} </p>
          <php>}else{</php>
          <div class="alC f14">
            <!-- 没有发信要显示的内容 -->
            <p>{:L('no_mail')}</p>
          </div>
          <php>}</php>
        </div>
        <!-- 好友日志 end  -->
      </div>
    </div>
  </div>
  <div class="C"></div>
</div>
<include file="__THEME__/footer" /> 